package com.thunderthrone.strategy.good;

/**
 * @author : Yang tengyu
 * @date : 2025/01/18
 */
public class MainService {

    public static void main(String[] args) {
        goTravel("BUS");
    }

    public static void goTravel(String type) {
        TravelModeEnum travelModeEnum = TravelModeEnum.valueOf(type);
        StrategyContext strategyContext = new StrategyContext(travelModeEnum);
        strategyContext.makeTravel();
    }

}
